package com.wilmar.process.procedure;

import java.sql.Array;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import com.wilmar.common.util.PageinationEntity;
import com.wilmar.process.entity.query.ProcessTakenTaskQueryObject;


/**
 * @author MaKuBEX Email:makubexnet@gmail.com
 * @version 1.0.0 Apr 21, 2010
 * @since 1.0.0
 * 
 */
public class TaskInstanceProcedure extends BaseProcedure {

	/**
	 * @serialField
	 */
	private static final long serialVersionUID = 3439380599593584863L;

	public static void getListTakenTaskInstance(Array i, Array j,
			ResultSet[] results) {
		try {
			Connection conn = getConnection();
			PageinationEntity page = new PageinationEntity();
			page.setLimit(50);
			ProcessTakenTaskQueryObject obj = new ProcessTakenTaskQueryObject();
			obj.setPageination(page);
			Statement stmt = conn.createStatement();
			String sql = "select * from v_process_taskinstance";
			results[0] = stmt.executeQuery(sql);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return;
	}

}
